package com.kh.job;

import com.vip.saturn.job.AbstractSaturnJavaJob;
import com.vip.saturn.job.SaturnJobExecutionContext;
import com.vip.saturn.job.SaturnJobReturn;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * DemoJob
 *
 * @author crossice
 * @date 2018/7/2
 */
public class DemoJob extends AbstractSaturnJavaJob {


    @Override
    public SaturnJobReturn handleJavaJob(String jobName, Integer shardItem, String shardParam, SaturnJobExecutionContext context) throws InterruptedException {

        System.out.println("当前时间" + LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME));

        return new SaturnJobReturn("测试一下");
    }
}
